package receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.example.menhoo.toollibrary.common.assist.Network;
import com.example.menhoo.toollibrary.common.helper.MessageUtil;
import com.lidroid.xutils.util.LogUtils;

import service.UDPPushService;


/**
 * Created by yanglei on 15/12/13.
 */
public class TickAlarmReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        if(Network.isAvailable(context) == false){
            return;
        }
        Intent startSrv = new Intent(context, UDPPushService.class);
        startSrv.putExtra("CMD", "TICK");
        context.startService(startSrv);
    }
}
